import query from "./urlQuery";

const params_obj = query(window.location.href);
let company = params_obj["u"];

//中英文切换
const textCheck = (value) => {
  if (company === "mg") {
    return value ? value.msg_en : "";
  } else {
    return value ? value.msg_cn : "";
  }
};
export default textCheck;
